package com.infore.airsupervise.bean;

import com.infore.airsupervise.utils.AirLevelUtil;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * 空气站实体类
 */

public class AirStationE extends BaseEntity {

    private int id;
    private String name;        // 站点名称
    private int monitorType;    // 监测类型
    private int stationType; // 站点类型
    private String time;  // 更新时间
    private AirLevel airLevel;  // 空气等级
    private String address;
    private double lnt;   // 经度
    private double lat;    // 纬度
    private double value;
    /**
     * AQI : 138
     * CO : 29
     * NO2 : 35
     * PM10 : 79
     * PM25 : 83
     * SO2 : 8
     * lat : 22.9355799117
     * lnt : 113.0744499196
     * mn : mn20170307101610
     * o3 : 0
     */

    private int AQI;
    private double CO;
    private double NO2;
    private double PM10;
    private double PM25;
    private double SO2;
    private String mn;
    private double o3;
    private double VOC;
    private boolean online;


    public AirStationE() {
    }

    public AirStationE(int id, String name, int monitorType, int stationType, String time, AirLevel airLevel, String address, double lnt, double lat, int value) {
        this.id = id;
        this.monitorType = monitorType;
        this.stationType = stationType;
        this.name = name;
        this.time = time;
        this.airLevel = airLevel;
        this.address = address;
        this.lnt = lnt;
        this.lat = lat;
        this.value = value;
    }

    public AirLevel getAirLevel() {
        return airLevel;
    }

    public void setAirLevel(AirLevel airLevel) {
        this.airLevel = airLevel;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMonitorType() {
        return monitorType;
    }

    public void setMonitorType(int monitorType) {
        this.monitorType = monitorType;
    }

    public int getStationType() {
        return stationType;
    }

    public void setStationType(int stationType) {
        this.stationType = stationType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getLnt() {
        return lnt;
    }

    public void setLnt(double lnt) {
        this.lnt = lnt;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public int getAQI() {
        return AQI;
    }

    public void setAQI(int AQI) {
        this.AQI = AQI;
    }

    public double getCO() {
        return CO;
    }

    public void setCO(double CO) {
        this.CO = CO;
    }

    public double getNO2() {
        return NO2;
    }

    public void setNO2(int NO2) {
        this.NO2 = NO2;
    }

    public double getPM10() {
        return PM10;
    }

    public void setPM10(double PM10) {
        this.PM10 = PM10;
    }

    public double getPM25() {
        return PM25;
    }

    public void setPM25(double PM25) {
        this.PM25 = PM25;
    }

    public double getSO2() {
        return SO2;
    }

    public void setSO2(double SO2) {
        this.SO2 = SO2;
    }

    public String getMn() {
        return mn;
    }

    public void setMn(String mn) {
        this.mn = mn;
    }

    public double getO3() {
        return o3;
    }

    public void setO3(double o3) {
        this.o3 = o3;
    }

    public double getVOC() { return VOC; }

    public void setVOC(double VOC) { this.VOC = VOC; }

    public boolean isOnline() {
        return online;
    }

    public void setOnline(boolean online) {
        this.online = online;
    }

    /**
     * 空气等级实体
     */
    public static class AirLevel {
        private int colorRes;
        private int level;
        private String levelStr;
        private int markerResId;
        private int nightResId;


        public AirLevel(int colorRes, int level, String levelStr) {
            this.colorRes = colorRes;
            this.level = level;
            this.levelStr = levelStr;

        }

        public AirLevel(int colorRes, int level, String levelStr, int markerResId , int nightResId) {
            this.colorRes = colorRes;
            this.level = level;
            this.levelStr = levelStr;
            this.markerResId = markerResId;
            this.nightResId = nightResId;
        }


        public int getNightResId() {
            return nightResId;
        }

        public void setNightResId(int nightResId) {
            this.nightResId = nightResId;
        }

        public int getMarkerResId() {
            return markerResId;
        }

        public void setMarkerResId(int markerResId) {
            this.markerResId = markerResId;
        }

        public int getColorRes() {
            return colorRes;
        }

        public void setColorRes(int colorRes) {
            this.colorRes = colorRes;
        }

        public String getLevelStr() {
            return levelStr;
        }

        public void setLevelStr(String levelStr) {
            this.levelStr = levelStr;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }
    }
}
